package com.zero.qth.mapper;

import java.util.List;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.zero.qth.domain.DriverBalanceDetail;
import org.apache.ibatis.annotations.Param;

/**
 * 司机余额明细Mapper接口
 * 
 * @author cai-xu-kun
 * @date 2025-09-17
 */
public interface DriverBalanceDetailMapper extends BaseMapper<DriverBalanceDetail> {
    /**
     * 查询司机余额明细分页
     *
     * @param driverBalanceDetail 司机余额明细
     * @param p 分页数据
     * @return 司机余额明细分页
     */
    Page<DriverBalanceDetail> selectDriverBalanceDetailListPage(@Param("driverBalanceDetail") DriverBalanceDetail driverBalanceDetail, @Param("p") Page<DriverBalanceDetail> p);

    /**
     * 查询司机余额明细
     * 
     * @param id 司机余额明细主键
     * @return 司机余额明细
     */
    DriverBalanceDetail selectDriverBalanceDetailById(Long id);

    /**
     * 查询司机余额明细列表
     * 
     * @param driverBalanceDetail 司机余额明细
     * @return 司机余额明细集合
     */
    List<DriverBalanceDetail> selectDriverBalanceDetailList(DriverBalanceDetail driverBalanceDetail);

    /**
     * 新增司机余额明细
     * 
     * @param driverBalanceDetail 司机余额明细
     * @return 结果
     */
    int insertDriverBalanceDetail(DriverBalanceDetail driverBalanceDetail);

    /**
     * 修改司机余额明细
     * 
     * @param driverBalanceDetail 司机余额明细
     * @return 结果
     */
    int updateDriverBalanceDetail(DriverBalanceDetail driverBalanceDetail);

    /**
     * 删除司机余额明细
     * 
     * @param id 司机余额明细主键
     * @return 结果
     */
    int deleteDriverBalanceDetailById(Long id);

    /**
     * 批量删除司机余额明细
     * 
     * @param ids 需要删除的数据主键集合
     * @return 结果
     */
    int deleteDriverBalanceDetailByIds(Long[] ids);
}
